package com.lgy.ms.core.constant;

/**
 * @author Gylin
 * 统一错误码
 */
public class RespCode {
	public final static String EROOR_UNKOWN_SERVICEID = "010014";
	public final static String EROOR_UNKOWN_SERVICEID_MS = "未知服务ID";

	public final static String EROOR_NO_DEFINED_BEAN = "010015";
	public final static String EROOR_NO_DEFINED_BEAN_MS = "未定义此BEAN";

	public final static String ERROR_APP_ID_EMPTY = "010003";
	public final static String ERROR_APP_ID_EMPTY_MS = "应用编号为空";

	public final static String ERROR_SERVICE_ID_EMPTY = "010004";
	public final static String ERROR_SERVICE_ID_EMPTY_MS = "服务ID为空";

	/**通用返回**/
	public final static String SUCCESS_CODE = "000000";
	public final static String SUCCESS_CODE_MS = "处理成功";

	public final static String ERROR_UNKOWN = "999999";
	public final static String ERROR_UNKOWN_MS = "未知错误";

	/**报文合法性**/
	public final static String ERROR_REPORT_ENC_FAIL = "000001";
	public final static String ERROR_REPORT_ENC_FAIL_MS = "报文加解密失败";

	public final static String EROOR_FAIL_VERIFY = "000002";
	public final static String EROOR_FAIL_VERIFY_MS = "验签失败";

	public final static String ERROR_REQUEST_MSG_EMPTY = "000003";
	public final static String ERROR_REQUEST_MSG_EMPTY_MS = "请求报文为空";

	public final static String ERROR_REQUEST_MSG_ILLEGAL = "000004";
	public final static String ERROR_REQUEST_MSG_ILLEGAL_MS = "请求格式非法";

	public final static String ERROR_NO_PARAM = "010000";
	public final static String ERROR_NO_PARAM_MS = "请求参数为空";

	public final static String EROOR_NULL_TRANSTYPE = "010001";
	public final static String EROOR_NULL_TRANSTYPE_MS = "交易类型为空";

	public final static String EROOR_UNKOWN_TRANSTYPE = "010002";
	public final static String EROOR_UNKOWN_TRANSTYPE_MS = "未知交易类型";

	public final static String ERROR_TIMESTAMP_EMPTY = "010006";
	public final static String ERROR_TIMESTAMP_EMPTY_MS = "请求时间戳为空";

	public final static String ERROR_RETURN_TYPE_ILLEGAL = "010009";
	public final static String ERROR_RETURN_TYPE_ILLEGAL_MS = "返回类型非法";

	public final static String ERROR_NO_SESSION_ID = "010010";
	public final static String ERROR_NO_SESSION_ID_MS = "无会话参数sessionId";

	public final static String ERROR_APPOINTMENT_FAIL = "010011";
	public final static String ERROR_APPOINTMENT_FAIL_MS = "预约挂号失败";

	public final static String ERROR_NOSET_REQUESTPARAMS = "010012";
	public final static String ERROR_NOSET_REQUESTPARAMS_MS = "没有设置请求参数";
	
	public final static String ERR_PARAMETER_TYPE = "010013";
	public final static String ERR_PARAMETER_TYPE_MS = "参数类型错误";
	
	public final static String ERR_VALIDATOR = "010014";
	public final static String ERR_VALIDATOR_MS = "验证传入参数出错";
	
	public final static String ERR_NOT_REQ_UPLOADFILE = "010015";
	public final static String ERR_NOT_REQ_UPLOADFILE_MS = "不是上传文件的请求";



	/**会话相关**/
//	public final static String SESSION_TIMEOUT = "020001";
//	public final static String SESSION_TIMEOUT_MS = "会话超时，请重新登录";

	public final static String ERR_SESSION_TIMEOUT = "020001";
	public final static String ERR_SESSION_TIMEOUT_MS = "会话超时或没有登录，请重新登录";

	public final static String ERR_SESSION_MISS = "020002";
	public final static String ERR_SESSION_MISS_MS = "sessionId为空，请登录！";
	
	/**账户**/
	public final static String ERR_NO_EXIST_USER = "030001";
	public final static String ERR_NO_EXIST_USER_MS = "不存在此用户";
	
	
	public final static String ERR_PASSWORD = "030002";
	public final static String ERR_PASSWORD_MS = "错误的密码";
	
	
	public final static String ERR_SAVE_APPSESSION = "030003";
	public final static String ERR_SAVE_APPSESSION_MS = "保存会话出错";
	
	
	public final static String ERR_UPDATE_USERPASS = "030004";
	public final static String ERR_UPDATE_USERPASS_MS = "更新密码出错";
	
	
	
	/**文件**/
	public final static String ERR_TMPFILE_CONVERT = "040001";
	public final static String ERR_TMPFILE_CONVERT_MS = "临时上传文件出错";
	
	
	public final static String ERR_TMPFILE_NOEXIST = "040002";
	public final static String ERR_TMPFILE_NOEXIST_MS = "临时上传文件不存在或是已经过期";
	
	
	public final static String ERR_TMPFILE_MOVETOSAVE = "040003";
	public final static String ERR_TMPFILE_MOVETOSAVE_MS = "移动文件出错";
	
	public final static String ERR_SAVE_CREATEDIR = "040004";
	public final static String ERR_SAVE_CREATEDIR_MS = "创建文件目录出错";
	
	/**榕医通**/
	public final static String ERR_ENABLE_HEALTH_INFO = "050001";
	public final static String ERR_ENABLE_HEALTH_INFO_MS = "请确认信息ID不存在";

	public final static String ERR_NO_APPSESSIONDTO = "050055";
	public final static String ERR_NO_APPSESSIONDTO_MS = "登录失效，请重新登录";

	public final static String ERR_OTHERDEVICE_LOGIN = "050073";
	public final static String ERR_OTHERDEVICE_LOGIN_MS = "用户已经在其他设备登录了,请重新登录";

	/**
	 * 权限
	 */
	public final static String ERR_USER_ROLE = "060001";
	public final static String ERR_USER_ROLE_MS = "非管理员且无角色用户";
	public final static String ERR_PERMISSION_DENIED = "060002";
	public final static String ERR_PERMISSION_DENIED_MS = "权限不足";

	/**
	 * 机构
	 */
	public final static String ERR_EXIT_INSTITUTION_NAME = "070001";
	public final static String ERR_EXIT_INSTITUTION_NAME_MS = "该机构名已存在";

	/**
     * NO session
     */
    public final static String ERROR_NOT_LOGIN = "110002";
	public final static String ERROR_NOT_LOGIN_MSG = "没有登录或登录过期了";

	/**
     * 手机号已被注册
     */
    public final static String ERROR_REGISTER_PHONE_EXIST = "050004";
	public final static String ERROR_REGISTER_PHONE_EXIST_MS = "该手机号已被注册";

    /************************消息推送*************************/
    public static final String MSG_PUSH_EMPTY_CARD = "300001";
    public static final String MSG_PUSH_EMPTY_CARD_MS = "手机号不能为空";

    public static final String MSG_PUSH_EMPTY_TEMPLATE = "300002";
    public static final String MSG_PUSH_EMPTY_TEMPLATE_MS = "消息模板号不能为空";

    public static final String MSG_PUSH_EMPTY_CONTENT = "300003";
    public static final String MSG_PUSH_EMPTY_CONTENT_MS = "消息内容不能为空";

    public static final String MSG_PUSH_NOT_LINK_PHONE = "301001";
    public static final String MSG_PUSH_NOT_LINK_PHONE_MS = "未找到关联手机账号";

    public static final String MSG_PUSH_EMPTY_WX_AND_ALI = "301002";
    public static final String MSG_PUSH_EMPTY_WX_AND_ALI_MS = "没有绑定微信公众号和阿里生活号";


    public static final String MSG_PUSH_INSERT_FAIL = "302001";
    public static final String MSG_PUSH_INSERT_FAIL_MS = "消息插入数据失败";

	public static final String FILE_UPLOAD_ERROR = "200101";
	public static final String FILE_UPLOAD_ERROR_MSG = "上传文件失败";

	public static final String FILE_UPLOAD_EMPTY = "200102";
	public static final String FILE_UPLOAD_EMPTY_MSG = "上传文件不能为空";

	public static final String ERROR_ADD = "800101";
	public static final String ERROR_ADD_MSG = "添加失败";
}
